package com.hyzx.qbasic.admin.domain.repository;


import com.github.pagehelper.PageInfo;
import com.hyzx.qbasic.admin.model.po.RolePO;

import java.util.List;
import java.util.Set;

/**
 * Created by 黄江华 on 2017/9/29
 */

public interface IRoleRepository {
    Set<String> getUserRoleNameList(int userId);

    List<RolePO> getAllRoleList();

    PageInfo<RolePO> getPagedRoleList(int pageNum, int pageSize, String roleName);

    boolean addRole(RolePO role, List<Integer> resourceList);

    boolean deleteRole(List<Integer> roleIdList);

    boolean editRole(RolePO role, List<Integer> resourceList);

    List<Integer> getRoleResources(int roleId);

    RolePO getRoleInfo(int roleId);

}
